<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .c1{
            background-color: pink;
            height: 200px;

            background-image: url(../imgs/index1.png);
            /* 不许重复 */
            background-repeat: no-repeat;
            /* 控制位置x y */
            background-position: center center;
            /* 不变形放大，充满容器 */
            background-size: cover;
        }
    </style>
</head>
<body>
    <div class="c1">西游记</div>
</body>
</html>